// 用户类型
export interface User {
  id: number;
  username: string;
  email: string;
  createdAt: string;
}

// 任务类型
export interface Task {
  id: number;
  userId: number;
  title: string;
  description?: string;
  dueDate?: string;
  status: "pending" | "completed";
  priority: "low" | "medium" | "high";
  createdAt: string;
  updatedAt: string;
  categories?: Category[];
  subtasks?: Subtask[];
}

// 分类类型
export interface Category {
  id: number;
  userId: number;
  name: string;
  color?: string;
}

// 子任务类型
export interface Subtask {
  id: number;
  taskId: number;
  title: string;
  status: "pending" | "completed";
  createdAt: string;
}
